package com.noob.assessment.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: zhengwq
 * datetime: 2020-04-16 23:51
 * description: 文件信息PO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("FILE_INFO")
@Builder
public class FileInfoPO {

    /**
     * 文件id 即 主键id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer fileId;

    /**
     * 文件名
     */
    @TableField("NAME")
    private String fileName;


    public FileInfoPO(String fileName) {
        this.fileName = fileName;
    }

}

